//
//  AppDelegate.swift
//  Hello2018
//
//  Created by 王小林 on 2017/8/31.
//  Copyright © 2017年 王小林. All rights reserved.
//

import UIKit
import Flutter
//#import "FlutterPluginRegistrant/GeneratedPluginRegistrant.h"
import FlutterPluginRegistrant
//import permission_handler

@UIApplicationMain
class AppDelegate: FlutterAppDelegate {
    
    override func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
//        GeneratedPluginRegistrant.register(with: self);
        
        /*let fc = FlutterViewController()
        GeneratedPluginRegistrant.register(with: fc);
        self.window = UIWindow.init(frame: UIScreen.main.bounds)
        self.window.rootViewController = fc
        self.window.backgroundColor = UIColor.white;
        self.window.makeKeyAndVisible()*/
        
        return super.application(application, didFinishLaunchingWithOptions: launchOptions)
    }
    
    /*override func registrar(forPlugin pluginKey: String) -> FlutterPluginRegistrar {
        return super.registrar(forPlugin: pluginKey)
    }
    
    override func hasPlugin(_ pluginKey: String) -> Bool {
        return super.hasPlugin(pluginKey)
    }
    
    override func hasPlugin(_ pluginKey: String) -> Bool {
        
    }
    
    override func valuePublished(byPlugin pluginKey: String) -> NSObject {
        
    }
    
    override func addApplicationLifeCycleDelegate(_ delegate: FlutterPlugin) {
        
    }*/
}

